﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Reflection;
using Ue.CQRS.Results;

namespace Ue.CQRS.Utility
{
    public static class EventUtility
    {
        public static bool EventHandleIsVerify(MethodInfo eventHandle)
        {
            var parameterTypeArray = eventHandle.GetParameters().Select(p=>p.ParameterType);
            if (parameterTypeArray.Count() == 1)
            {
                return true;
            }

            return false;
        }
    }
}
